<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<link href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css" rel="stylesheet">
		<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/fabric/addFabric.css'>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/common/jquery-2.0.0.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/common/jquery.validate.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/fabric/addFabric.js"></script>
		<title></title>
	</head>

	<body>
		<form action="" method="post" id="addForm">
			<div class="addPhoto" style="height: 108px;">
				<span style="float: left;">面料图：&nbsp;&nbsp;</span>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传面料图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_url1" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传面料图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_url2" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传面料图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_url3" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传面料图</span>
					</div>
					<input type="file" class="tohide" style="display: none;"  name="photo_url4" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传面料图</span>
					</div>
					<input type="file" class="tohide" style="display: none;"  name="photo_url5" />
				</div>

			</div>
			<div class="addPhoto three">
				<div class="divNO">
					<span>货号：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="text" class="input" name="NO" />
				</div>
				<div class="divclothName">
					<span>面料名称：</span>
					<input type="text" class="input" name="clothName" />
				</div>

			</div>
			<div class="addPhoto two">
				<div class="divprice">
					<span>价格：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="text" class="input" name="price" placeholder="单位(元)" />
				</div>
				<div class="divorderqty">
					<span>订货起订量：</span>
					<input type="text" class="input" name="orderqty" placeholder="单位(件)" />
				</div>
				<div class="divgoodsquantity">
					<span>现货量：</span>
					<input type="text" class="input" name="goodsquantity" style="width: 70px;" placeholder="单位(件)" />
				</div>
			</div>
			<div class="addPhoto">
				<span>成分：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<select name="" id="parent_component" style="width: 214px">
					<option value="-1">请选择大类</option>
					<c:forEach items="${fabricComponents}" var="fabric_class">
						<option value="${fabric_class.code}">${fabric_class.name}</option>
					</c:forEach>
				</select>
				<select name=" " id="child_component" style="width: 214px">
					<option value="-1">请选择小类</option>
				</select>
			</div>
			<div class="addPhoto">
				<span>织法：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<select name="" id="parent_class" style="width: 214px">
					<option value="-1">请选择大类</option>
					<c:forEach items="${weaves}" var="fabric_class">
						<option value="${fabric_class.code}">${fabric_class.name}</option>
					</c:forEach>
				</select>
				<select name=" " id="child_class" style="width: 214px">
					<option value="-1">请选择小类</option>
				</select>
			</div>
			<div class="addPhoto">
				<span>制作工艺：</span>
				<select name="craftmanship" style="width: 210px;margin-right: 29px;">
					<option value="-1">请选择制作工艺</option>
					<c:forEach items="${FP_dic}" var="fabric_class">
						<option value="${fabric_class.code}">${fabric_class.value}</option>
					</c:forEach>
				</select>
				<span>有无弹力：</span>
				<select name="isElasticity" style="width: 109px;">
					<option value="true">是</option>
					<option value="false">否</option>
				</select>
			</div>
			<div class="addPhoto two2">
				<div class="divc1">
					<span>TCX色系：</span>
					<input type="text" class="input" name="tcxcolorsystem" />
				</div>
				<div class="divc2">
					<span>TPX色系：</span>
					<input type="text" class="input" name="tpxcolorsystem" />
				</div>
			</div>
			<div class="addPhoto">
				<span>主要用途：</span>
				<select name="applica" style="width: 210px;margin-right: 29px;">
					<option value="-1">请选择主要用途</option>
					<c:forEach items="${FA_dic}" var="FA_dic">
						<option value="${FA_dic.code}">${FA_dic.value}</option>
					</c:forEach>
				</select>
			</div>
			<div class="addPhoto" style="position: relative;left: 14px;">

				<button class="btn btn-info" value="submit">提交</button>
			</div>

		</form>
		<span class="commonUrl" style="display:none">${pageContext.request.contextPath}</span>
	</body>

</html>